execute if entity @n[tag=temp.main,distance=..10,type=item_display,scores={short_circuit_timer=0..}] run return run data modify entity @s text set value '[{"text": "🔋⚡: ","color": "yellow"},{"text": "111","obfuscated": true}]'

execute store result score #maxPower temp run data get entity @n[tag=temp.powerdisplayID,distance=..10,type=item_display] item.components."minecraft:max_damage"
execute store result score #Power temp run data get entity @n[tag=temp.powerdisplayID,distance=..10,type=item_display] item.components."minecraft:damage"
scoreboard players operation #maxPower temp -= #Power temp

data modify entity @s text set value '[{"text": "🔋⚡: ","color": "yellow"},{"score": {"name": "#maxPower","objective": "temp"}}]'

scoreboard players reset #Power temp
scoreboard players reset #maxPower temp